<% flash.each do |key, value| %>
  <%= render partial: "layouts/alert", locals: { type: key, message: value } %>
<% end %>